package User;

import Book.BookShelf;
import ioperation.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();//动态绑定
    public void doIoperation(int choice, BookShelf bookShelf){
        iOperations[choice].work(bookShelf);
    }
}
